﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Wwtfly.BBS.BackModels.Models.PlaysType;
using Wwtfly.BBS.BackDAL.Plays;
using Wwtfly.LoggerUtility;
using System.Data;

namespace Wwtfly.BBS.BackBLL.Plays
{
   public class PlaysTypesBLL
    {
        /// <summary>
        ///  获取彩种类型初始化数据
        /// </summary>
        /// <param name="pageParams">分页参数</param>
        /// <param name="searchModel">新闻搜索 实体类</param>
        /// <returns>分页后的结果</returns>
       public static IList<LotteryType> GetPlaysTypesList()
        {
            try
            {
                return PlaysTypesDAL.GetPlaysTypesList();
            }
            catch (Exception ex)
            {
                LoggerManage.Error(new LogMessageParams()
                {
                    ModuleID = "PlaysTypesDAL",
                    FuncCode = " GetNewsTypesList()",
                    Level = AppErrorLevel.EROR,
                    ErrCode = "0x0",
                    Excep = ex,
                    logMessage = " 获取彩种类型初始化数据 的相关信息.出错",
                    ProgramName = "Wwtilfy.BBS"
                });
                return new List<LotteryType>();
            }
        }

    }
}
